Public: User Documentation : April 4-5 2005 Dev Workshop Notes
This page last changed on Jun 07, 2005 by schank.
Notes from Ed's April 4-5, 2005 VisitEd Burke visited SRI to give us an introduction to Pedigogica. We ran through some Pedigogica examples, and then walked through the introduction to ACE is available at Creating and Modifying Pedagogica Activities. On the second day, we tried to recreate part of an existing dynamica activity to familiarize ourselves with the scripting and some of the dynamica engine API. How do I create or modify a Pedigogica activity?Using ACE, the Pedagogica Development Subsystem. An introduction to ACE is available at Creating and Modifying Pedagogica Activities How do I get a simulation engine for my activity?First, you have to download the jar for the engine to your computer (if you don't aleady have it) so that you can develop an activity using the engine. One way to get a jar is to run an activity that has the jar you want. This way, the jar(s) will automatically be put in the Pedigogica class path. For example, you could start up the WISE activity assistant to get dynamica, biologica or other jars through that. To start the assistant, click on: Concord Pedagogica/Wise Assistant A screen will appear. Suppose we want to work on a dynamica-based activity. Click Get Activity URL and drill down Activity/Physics/Dynamics/Dynamics.jar Then click Run Activity. It will download the dynamical jar. You'll get another dialog, and you can start the activity from there. Then in ACE, right-click in the node area, choose Edit Classpath, and add the URL for your jar. Where else can I find simulation engines?You can find jars through a browser, e.g., through WISE activities http://wise25.concord.org/workspaces/wise25/Test/Activity/ All things developed for the MAC project http://xeon.concord.org/workspaces/workspaces.jar Others http://xeon.concord.org/workspaces/ Then just make sure whatever you download is added to your ACE classpath. Dynamica exampleHere are the things we did in ACE to create a portion of a dynamica activity.
We copied the setupview method and pasted it into the rood node script (background) and rename the variable to objectView (whatever we named our component). Ed ended up putting the code we needed on the Wiki and we copied and pasted. Widgets we created included a JComboBox for the objects menu (called objectList), gravity checkbox, clear object button, etc. We choose Snap to Grid with low resolution. Note: The view method is called AFTER the view is created and made visible. If you need to manipulate the component appearance, do it here. Nodes are blue (red selected) until you put something inside of them, when they then turn green (yellow selected). |
Document generated by Confluence on Jan 27, 2014 16:57 |